package com.sptus.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import com.sptus.common.core.redis.RedisCache;

import com.sptus.system.domain.*;
import com.sptus.system.domain.alarm.Alarm;
import com.sptus.system.domain.alarm.Fault;
import com.sptus.system.domain.vo.AppInfo;
import com.sptus.system.service.impl.WorkOrdersServiceImpl;

import java.util.List;

public interface ISptDevLogService extends IService<SptDevLog> {

     // type 1:新增 2:更改 3:删除
     void saveWorkerLog(WorkOrders workOrders, Integer type);

     void saveDevSet(DevDictionaries devDictionaries, String type);

     IPage<SptDevLog> getSptLogs(Page page, QueryWrapper queryWrapper);

     void saveDevSetUpdate(DevDictionaries devDictionaries1, String number);

     void saveDevSetApp(AppInfo appInfo,String version);

     void saveDevAlarm(String sn, BBWS bbws, WorkOrdersServiceImpl workOrdersService, RedisCache redisCache);

     void saveDevAlarmW(Equipment sn, List<Alarm> alarms, WorkOrdersServiceImpl service, RedisCache redisCache, IConfigInfoService configInfoService);

     void saveDevFault(Equipment equipment, Fault fault, WorkOrdersServiceImpl workOrdersService, RedisCache redisUtil, IConfigInfoService configInfoService);
}
